#ifndef _MASKED_IMAGE_H_
#define _MASKED_IMAGE_H_

#include <pnm.h>

struct maskedImage;

/* Builds a masked image with both pnm image and mask version */
struct maskedImage* initMaskedImage(pnm* ims, pnm* mask);

/* Frees a masked image structure */
int freeMaskedImage(struct maskedImage* img);

/* Counts the number of masked pixels */
int countMaskedPixels(struct maskedImage* img);

/* Returns a downsampled image (factor 1/2) */
struct maskedImage* downsample(struct maskedImage* img);

#endif /* _MASKED_IMAGE_H_ */
